package org.csu.newpetstoreback.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("item")
public class Item {

    @TableId(value ="itemid",type = IdType.INPUT)
    private String itemId;
    @TableField(value ="productid")
    private String productId;//product_id
    @TableField(value = "categoryid")
    private String categoryId;
    @TableField(value ="price")
    private BigDecimal listPrice;
    @TableField(value ="unitcost")
    private BigDecimal unitCost;
    @TableField(value ="supplier")
    private int supplierId;
    @TableField(value = "status")
    private String status;
    @TableField(value = "attr1")
    private String attribute1;
    @TableField(value = "attr2")
    private String attribute2;
    @TableField(value = "attr3")
    private String attribute3;

    @TableField(value = "iImage")
    @JsonProperty("iImage")
    private String iImage;

    @TableField(value = "iName")
    @JsonProperty("iName")
    private String iName;

    @TableField(value = "iDescn")
    @JsonProperty("iDescn")
    private String iDescn;


}
